<el-form ref="form" :model="form" :rules="rules" label-width="100px">
    <el-row :gutter="10">
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="最终用户">
                <el-input clearable v-model="form.MMRX018_NAME">
                    <i class="el-icon-search el-input__icon" @click="openMmrx018Window" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="订单日期">
                <el-date-picker
                        type="date"
                        v-model="form.MMRXDOCDATE"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="归属法人">
                <el-input clearable v-model="form.MMRXLEGAL_NAME" @clear="clearMmrxlegal">
                    <i class="el-icon-search el-input__icon" @click="openMmrxlegalWindow" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="签约单位">
                <el-input clearable v-model="form.MMRX019_NAME">
                    <i class="el-icon-search el-input__icon" @click="openMmrx019Window" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="订单单号" prop="MMRXDOCNO">
                <el-input v-model="form.MMRXDOCNO"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="ERP营运中心">
                <el-input v-model="form.MMRXPLANT" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="销售人员">
                <el-input clearable v-model="form.MMRX022_NAME">
                    <i class="el-icon-search el-input__icon" @click="openMmrx022Window" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="销售部门">
                <el-input clearable v-model="form.MMRX032_NAME">
                    <i class="el-icon-search el-input__icon" @click="openMmrx032Window" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="10" :md="10" :lg="10" :xl="10">
            <el-form-item label="开票信息">
                <el-input type="textarea" rows="5" v-model="form.MMRX024_DATA" readOnly>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="2" :md="2" :lg="2" :xl="2">
            <el-button size="mini" v-show="!isCheck" @click="openGWAK" style="display: inherit;">修改开票</el-button>
        </el-col>
        <el-col :xs="24" :sm="10" :md="10" :lg="10" :xl="10">
            <el-form-item label="送货信息">
                <el-input type="textarea" rows="5" v-model="form.MMRX025_DATA" readOnly>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="2" :md="2" :lg="2" :xl="2">
            <el-button size="mini" v-show="!isCheck" @click="openMmrx025" style="display: inherit;">修改送货</el-button>
        </el-col>
        <el-col :xs="24" :sm="10" :md="10" :lg="10" :xl="10">
            <el-form-item label="发票寄送信息">
                <el-input type="textarea" v-model="form.MMRX026_DATA" readOnly>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="2" :md="2" :lg="2" :xl="2">
            <el-button size="mini" v-show="!isCheck" @click="openMmrx026" style="display: inherit;">修改发票</el-button>
        </el-col>
    </el-row>
    <el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re">
                <div class="pos-ab" style="margin-bottom: 10px;">
                    <el-button type="primary" size="small"
                               @click="addData">报工单转入
                    </el-button>
                    <el-button type="primary" size="small"
                               @click="delData">删除
                    </el-button>
                </div>
                <div class="table-responsive">
                    <table id="gwei025_edit_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwei025_edit_table">
                    </table>
                </div>
                <div style="text-align:right;margin-right: 20%">
                    <div>合计金额：{{MMRX005_SUM}}</div>
                </div>
            </div>
        </el-col>
    </el-row>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" :disabled="isCheck"
                       @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwei025_edit"], $.noop);
</script>